import { http } from "@/utils"
import { makeAutoObservable } from 'mobx'

class UserStore {
    userInfo = {};
    constructor() {
        makeAutoObservable(this)
    }
    async getUserInfo () {
        const res = await http.get('/my/userinfo')
        console.log(res)
        this.userInfo = res.data
    }
}

export default UserStore